!!! Strict
%html
  %head
    %title
      = h(yield(:title) || "Untitled")
    = stylesheet_link_tag 'application'
    = stylesheet_link_tag 'main'
    = javascript_include_tag :all
    
    / = stylesheet_link_tag 'base.css', :media => 'all'
    / %script{ :type => "text/javascript", :src => "/javascripts/admin/css.js" }
    / %script{ :type => "text/javascript", :src => "/javascripts/admin/behaviour.js" }
    / %script{ :type => "text/javascript", :src => "/javascripts/persist.js" }
    
    = yield(:head)
  %body
    %ul#menu
      - for page in Page.roots
        %li
          = link_to h(page.name), :controller => page.name.pluralize
    #container
      - flash.each do |name, msg|
        = content_tag :div, msg, :id => "flash_#{name}"

      - if show_title?
        %h1
          = h yield(:title)
      = yield
